<template>
	<el-table
		ref="singleTable"
		:data="tableData"
		style="width: 100%"
		:header-cell-style="{ 'text-align': 'center' }"
		max-height="288"
		:cell-style="{ textAlign: 'center' }"
	>
		<el-table-column type="index" width="50" label="顺序"></el-table-column>
		<el-table-column property="name" label="姓名" width="120"></el-table-column>
		<el-table-column property="phone" label="手机" width="120"></el-table-column>
		<el-table-column property="consumption" label="消费金额"></el-table-column>
		<el-table-column property="level" label="会员等级"></el-table-column>
	</el-table>
</template>

<script>
import request from "../../../api/home";
export default {
	name: "StudentInfo",
	data() {
		return {
			tableData: [],
		};
	},
	methods: {},
	mounted() {
		request
			.getStudentInfo({
				url: "/getstudentinfo",
				method: "get",
			})
			.then((res) => {
				if (res.code == 200 && res.success == 0) {
					this.tableData = res.data.list;
				}
			});
	},
};
</script>

<style lang="less" scoped></style>
